package com.itheima.dao;

import com.itheima.pojo.User;
import com.itheima.util.XmlParserUtils;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserDaoA  {

    public List<User> operator() {
        // 1 访问数据(解析xml文件,把数据封装成对象)
        List<User> users = XmlParserUtils.parse("C:\\Users\\17697\\Desktop\\javaWeb\\day05\\springboot-request-response\\src\\main\\resources\\user.xml");
        return users;
    }
}
